﻿using PowerHub.MES.DTO.Production.QueryDTO;
using PowerHub.MES.Entities.Production;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IRepository.IProduction
{

    /// <summary>
    ///生产工单数据接口层
    /// </summary>
    public interface IProduction_WorkOrderRepository
    {
        /// <summary>
        /// 获取基地列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<Production_WorkOrder>>> GetProduction_WorkOrderPageListAsync(QueryProduction_WorkOrderDTO query);

        /// <summary>
        /// 添加基地
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> CreateProduction_WorkOrderAsync(Production_WorkOrder query);

        /// <summary>
        /// 批量删除基地
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionProduction_WorkOrderAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateProduction_WorkOrderAsync(Production_WorkOrder query);

        /// <summary>
        /// 根据生产工单id获取工单信息
        /// </summary>
        /// <returns></returns>
        /// <exception cref="Exception"></exception>
        public Task<Production_WorkOrder> GetProduction_WorkOrderByIdProductionTaskListAsync(QueryProduction_WorkOrderDTO pageQuery);
    }
}
